package com.zkjl.protect_business.service;

import com.zkjl.protect_business.dto.ArchiveDTO;
import com.zkjl.protect_business.entity.Archive;

import java.util.List;

public interface ArchiveService {

    /**
     * 保存存档
     * @param archiveDTO
     * @param businessId
     * @return
     */
    Archive create(ArchiveDTO archiveDTO, String businessId);

    /**
     * 获取存档信息
     * @param id
     * @return
     */
    Archive get(String id);

    /**
     * 删除存档
     * @param id
     * @return
     */
    Boolean del(String id);



    /**
     * 获取业务的所有存档
     * @param businessId
     * @return
     */
    List<Archive> list(String businessId);


}
